import request from '../../common/request'

//宣传海报列表
export function queryPosterList(params){
	return request({
		url:'/order/poster/list',
		param:params,
		producttype:3,
	})
}

//海报录单界面二维码获取
export function getPosterCode(params){
	return request({
		url:'/order/poster/getOrderQcode',
		param:params,
		producttype:3,
	})
}


//获取账户信息
export function queryAccountInfo(params){
	return request({
		url:'/query/user/queryacountinfo',
		param:params,
		producttype:3,
	})
}
//登录
export function login(params){
	return request({
		url:'/query/user/loginTo',
		param:params,
		producttype:1,
		checkLogin:false
	})
}

//公告列表
export function queryNoticeList(params){
	return request({
		url:'/product/app/Notice/list',
		param:params,
		producttype:1,
	})
}

//首页公告
export function queryIndexNotice(params){
	return request({
		url:'/product/app/Notice/index',
		param:params,
		producttype:1,
	})
}

//公告标识为已读
export function addNoticeReadRecord(params){
	return request({
		url:'/product/app/Notice/addNoticeReadRecord',
		param:params,
		producttype:1,
	})
}

//查看公告详情
export function queryNoticeDetail(params){
	return request({
		url:'/product/app/Notice/findById',
		param:params,
		producttype:1,
	})
}


//获取搜索关键词列表
export function querySearchKeyList(params,producttype){
	return request({
		url:'/tools/getSearchKeyList',
		method:'get',
		param:params,
		producttype:producttype,
	})
}

//获取搜索关键词列表
export function saveSearchKey(params,producttype){
	return request({
		url:'/tools/saveSearchKey',
		param:params,
		producttype:producttype,
	})
}

//上传文件
export function uploadFile(data){
	return request({
		url:'/tools/btachUpload',
		data:data,
		producttype:1,
	})
}

//获取优惠券列表
export function queryCouponList(params){
	return request({
		url:'/product/hangup/order/queryCoupon',
		param:params,
		producttype:1,
	})
}